package com.ourteam.system.dao;

import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * Template Name : DAO查询对象
 * Template Version : 1
 * Template Last Modfiy Date : Sat Aug 19 10:06:32 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:30
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public class SysEventLogTypeDAOQueryBean extends BaseQueryBean {
    public SysEventLogTypeDAOQueryBean() {
        super();
    }

    public SysEventLogTypeDAOQueryBean(BaseQueryBean aQueryBean) {
        super(aQueryBean);
    }

    public SysEventLogTypeDAOQueryBean(BaseQueryBean aQueryBean,
        Map tableReplaceMap) {
        super(aQueryBean, tableReplaceMap);
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();

        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        return new Criteria(this);
    }

    public void addIdSelectProperty() {
        addIdSelectProperty("id");
    }

    public void addIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysEventLogTypeDAO.Id, aAlias);
        } else {
            addSelectProperty(ISysEventLogTypeDAO.Id, "id");
        }
    }

    public void addEventTypeCodeSelectProperty() {
        addEventTypeCodeSelectProperty("eventTypeCode");
    }

    public void addEventTypeCodeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysEventLogTypeDAO.EventTypeCode, aAlias);
        } else {
            addSelectProperty(ISysEventLogTypeDAO.EventTypeCode, "eventTypeCode");
        }
    }

    public void addEventTypeNameSelectProperty() {
        addEventTypeNameSelectProperty("eventTypeName");
    }

    public void addEventTypeNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysEventLogTypeDAO.EventTypeName, aAlias);
        } else {
            addSelectProperty(ISysEventLogTypeDAO.EventTypeName, "eventTypeName");
        }
    }

    public void addStatusSelectProperty() {
        addStatusSelectProperty("status");
    }

    public void addStatusSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysEventLogTypeDAO.Status, aAlias);
        } else {
            addSelectProperty(ISysEventLogTypeDAO.Status, "status");
        }
    }

    public void addRemarksSelectProperty() {
        addRemarksSelectProperty("remarks");
    }

    public void addRemarksSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysEventLogTypeDAO.Remarks, aAlias);
        } else {
            addSelectProperty(ISysEventLogTypeDAO.Remarks, "remarks");
        }
    }

    public void addEventContentTemplateSelectProperty() {
        addEventContentTemplateSelectProperty("eventContentTemplate");
    }

    public void addEventContentTemplateSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysEventLogTypeDAO.EventContentTemplate, aAlias);
        } else {
            addSelectProperty(ISysEventLogTypeDAO.EventContentTemplate,
                "eventContentTemplate");
        }
    }

    public void addEventDomainIdSelectProperty() {
        addEventDomainIdSelectProperty("eventDomainId");
    }

    public void addEventDomainIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysEventLogTypeDAO.EventDomainId, aAlias);
        } else {
            addSelectProperty(ISysEventLogTypeDAO.EventDomainId, "eventDomainId");
        }
    }

    public void addEventDomainNameSelectProperty() {
        addEventDomainNameSelectProperty("eventDomainName");
    }

    public void addEventDomainNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysEventLogTypeDAO.EventDomainName, aAlias);
        } else {
            addSelectProperty(ISysEventLogTypeDAO.EventDomainName,
                "eventDomainName");
        }
    }

    public void addAllSelectProperties() {
        addIdSelectProperty();

        addEventTypeCodeSelectProperty();

        addEventTypeNameSelectProperty();

        addStatusSelectProperty();

        addRemarksSelectProperty();

        addEventContentTemplateSelectProperty();

        addEventDomainIdSelectProperty();

        addEventDomainNameSelectProperty();
    }

    public static class Criteria extends BaseWhereCriterion<SysEventLogTypeDAOQueryBean> {
        protected Criteria(SysEventLogTypeDAOQueryBean aParentObject) {
            super(aParentObject);
        }

        public Criteria andIdIsNull() {
            addCriterion(ISysEventLogTypeDAO.Id + " is null");

            return this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion(ISysEventLogTypeDAO.Id + " is not null");

            return this;
        }

        public Criteria andIdIsNotEmpty() {
            addCriterion(ISysEventLogTypeDAO.Id + " is not null AND " +
                ISysEventLogTypeDAO.Id + " <> ''");

            return this;
        }

        public Criteria andIdIsEmpty() {
            addCriterion("(" + ISysEventLogTypeDAO.Id + " is null OR " +
                ISysEventLogTypeDAO.Id + " = '')");

            return this;
        }

        public Criteria andIdEqualTo(long value) {
            return andIdEqualTo(Long.valueOf(value));
        }

        public Criteria andIdEqualTo(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.Id + " = ", value, "id");

            return this;
        }

        public Criteria andIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Id);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Id + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotEqualTo(long value) {
            return andIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToOrIsNull(long value) {
            return andIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.Id + " is null OR " +
                ISysEventLogTypeDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Id);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Id + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThan(long value) {
            return andIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.Id + " >", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Id);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Id + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(long value) {
            return andIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.Id + " >=", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Id);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Id + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThan(long value) {
            return andIdLessThan(Long.valueOf(value));
        }

        public Criteria andIdLessThan(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.Id + " <", value, "id");

            return this;
        }

        public Criteria andIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Id);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Id + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(long value) {
            return andIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.Id + " <=", value, "id");

            return this;
        }

        public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Id);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Id + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdIn(long[] values) {
            if (values.length == 1) {
                return andIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.Id + " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.Id + " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.Id + " in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.Id + " not in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Id + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Id + " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdBetween(long value1, long value2) {
            addCriterion(ISysEventLogTypeDAO.Id + " between", value1, value2,
                "id");

            return this;
        }

        public Criteria andIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysEventLogTypeDAO.Id + " between", value1, value2,
                "id");

            return this;
        }

        public Criteria andIdNotBetween(long value1, long value2) {
            addCriterion(ISysEventLogTypeDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysEventLogTypeDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andEventTypeCodeIsNull() {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " is null");

            return this;
        }

        public Criteria andEventTypeCodeIsNotNull() {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " is not null");

            return this;
        }

        public Criteria andEventTypeCodeIsNotEmpty() {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode +
                " is not null AND " + ISysEventLogTypeDAO.EventTypeCode +
                " <> ''");

            return this;
        }

        public Criteria andEventTypeCodeIsEmpty() {
            addCriterion("(" + ISysEventLogTypeDAO.EventTypeCode +
                " is null OR " + ISysEventLogTypeDAO.EventTypeCode + " = '')");

            return this;
        }

        public Criteria andEventTypeCodeEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " = ", value,
                "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeCodeEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeCode);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeCodeEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeCodeNotEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " <>", value,
                "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeCodeNotEqualToOrIsNull(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " is null OR " +
                ISysEventLogTypeDAO.EventTypeCode + " <>", value,
                "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeCodeNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeCode);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeCodeNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeCodeGreaterThan(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " >", value,
                "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeCodeGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeCode);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeCodeGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeCodeGreaterThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " >=", value,
                "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeCodeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeCode);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeCodeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeCodeLessThan(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " <", value,
                "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeCodeLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeCode);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeCodeLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeCodeLessThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " <=", value,
                "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeCodeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeCode);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeCodeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeCodeLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " like",
                buffer.toString(), "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeCodeNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " not like",
                buffer.toString(), "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeCodeIn(List<String> values) {
            if (values.size() == 1) {
                return andEventTypeCodeEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.EventTypeCode + " in", values,
                    "eventTypeCode");

                return this;
            }
        }

        public Criteria andEventTypeCodeNotIn(List<String> values) {
            if (values.size() == 1) {
                return andEventTypeCodeNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.EventTypeCode + " not in",
                    values, "eventTypeCode");

                return this;
            }
        }

        public Criteria andEventTypeCodeIn(String[] values) {
            if (values.length == 1) {
                return andEventTypeCodeEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventTypeCode + " in",
                    Arrays.asList(values), "eventTypeCode");

                return this;
            }
        }

        public Criteria andEventTypeCodeNotIn(String[] values) {
            if (values.length == 1) {
                return andEventTypeCodeNotEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventTypeCode + " not in",
                    Arrays.asList(values), "eventTypeCode");

                return this;
            }
        }

        public Criteria andEventTypeCodeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeCodeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeCodeBetween(String value1, String value2) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " between",
                value1, value2, "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeCodeNotBetween(String value1, String value2) {
            addCriterion(ISysEventLogTypeDAO.EventTypeCode + " not between",
                value1, value2, "eventTypeCode");

            return this;
        }

        public Criteria andEventTypeNameIsNull() {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " is null");

            return this;
        }

        public Criteria andEventTypeNameIsNotNull() {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " is not null");

            return this;
        }

        public Criteria andEventTypeNameIsNotEmpty() {
            addCriterion(ISysEventLogTypeDAO.EventTypeName +
                " is not null AND " + ISysEventLogTypeDAO.EventTypeName +
                " <> ''");

            return this;
        }

        public Criteria andEventTypeNameIsEmpty() {
            addCriterion("(" + ISysEventLogTypeDAO.EventTypeName +
                " is null OR " + ISysEventLogTypeDAO.EventTypeName + " = '')");

            return this;
        }

        public Criteria andEventTypeNameEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " = ", value,
                "eventTypeName");

            return this;
        }

        public Criteria andEventTypeNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeNameNotEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " <>", value,
                "eventTypeName");

            return this;
        }

        public Criteria andEventTypeNameNotEqualToOrIsNull(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " is null OR " +
                ISysEventLogTypeDAO.EventTypeName + " <>", value,
                "eventTypeName");

            return this;
        }

        public Criteria andEventTypeNameNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeNameGreaterThan(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " >", value,
                "eventTypeName");

            return this;
        }

        public Criteria andEventTypeNameGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeNameGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeNameGreaterThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " >=", value,
                "eventTypeName");

            return this;
        }

        public Criteria andEventTypeNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeNameLessThan(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " <", value,
                "eventTypeName");

            return this;
        }

        public Criteria andEventTypeNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeNameLessThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " <=", value,
                "eventTypeName");

            return this;
        }

        public Criteria andEventTypeNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventTypeName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventTypeNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " like",
                buffer.toString(), "eventTypeName");

            return this;
        }

        public Criteria andEventTypeNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " not like",
                buffer.toString(), "eventTypeName");

            return this;
        }

        public Criteria andEventTypeNameIn(List<String> values) {
            if (values.size() == 1) {
                return andEventTypeNameEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.EventTypeName + " in", values,
                    "eventTypeName");

                return this;
            }
        }

        public Criteria andEventTypeNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andEventTypeNameNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.EventTypeName + " not in",
                    values, "eventTypeName");

                return this;
            }
        }

        public Criteria andEventTypeNameIn(String[] values) {
            if (values.length == 1) {
                return andEventTypeNameEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventTypeName + " in",
                    Arrays.asList(values), "eventTypeName");

                return this;
            }
        }

        public Criteria andEventTypeNameNotIn(String[] values) {
            if (values.length == 1) {
                return andEventTypeNameNotEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventTypeName + " not in",
                    Arrays.asList(values), "eventTypeName");

                return this;
            }
        }

        public Criteria andEventTypeNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventTypeNameBetween(String value1, String value2) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " between",
                value1, value2, "eventTypeName");

            return this;
        }

        public Criteria andEventTypeNameNotBetween(String value1, String value2) {
            addCriterion(ISysEventLogTypeDAO.EventTypeName + " not between",
                value1, value2, "eventTypeName");

            return this;
        }

        public Criteria andStatusIsNull() {
            addCriterion(ISysEventLogTypeDAO.Status + " is null");

            return this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion(ISysEventLogTypeDAO.Status + " is not null");

            return this;
        }

        public Criteria andStatusIsNotEmpty() {
            addCriterion(ISysEventLogTypeDAO.Status + " is not null AND " +
                ISysEventLogTypeDAO.Status + " <> ''");

            return this;
        }

        public Criteria andStatusIsEmpty() {
            addCriterion("(" + ISysEventLogTypeDAO.Status + " is null OR " +
                ISysEventLogTypeDAO.Status + " = '')");

            return this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.Status + " = ", value, "status");

            return this;
        }

        public Criteria andStatusEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Status);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Status + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToOrIsNull(String value) {
            addCriterion(ISysEventLogTypeDAO.Status + " is null OR " +
                ISysEventLogTypeDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Status);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Status + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion(ISysEventLogTypeDAO.Status + " >", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Status);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Status + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.Status + " >=", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Status);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Status + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion(ISysEventLogTypeDAO.Status + " <", value, "status");

            return this;
        }

        public Criteria andStatusLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Status);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Status + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.Status + " <=", value, "status");

            return this;
        }

        public Criteria andStatusLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Status);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Status + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.Status + " like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.Status + " not like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.Status + " in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.Status + " not in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusIn(String[] values) {
            if (values.length == 1) {
                return andStatusEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.Status + " in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(String[] values) {
            if (values.length == 1) {
                return andStatusNotEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.Status + " not in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Status + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Status + " not in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion(ISysEventLogTypeDAO.Status + " between", value1,
                value2, "status");

            return this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion(ISysEventLogTypeDAO.Status + " not between", value1,
                value2, "status");

            return this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion(ISysEventLogTypeDAO.Remarks + " is null");

            return this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion(ISysEventLogTypeDAO.Remarks + " is not null");

            return this;
        }

        public Criteria andRemarksIsNotEmpty() {
            addCriterion(ISysEventLogTypeDAO.Remarks + " is not null AND " +
                ISysEventLogTypeDAO.Remarks + " <> ''");

            return this;
        }

        public Criteria andRemarksIsEmpty() {
            addCriterion("(" + ISysEventLogTypeDAO.Remarks + " is null OR " +
                ISysEventLogTypeDAO.Remarks + " = '')");

            return this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " = ", value, "remarks");

            return this;
        }

        public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Remarks);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToOrIsNull(String value) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " is null OR " +
                ISysEventLogTypeDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Remarks);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " >", value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Remarks);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " >=", value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Remarks);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " <", value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Remarks);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " <=", value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.Remarks);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.Remarks + " like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.Remarks + " not like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.Remarks + " in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.Remarks + " not in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(String[] values) {
            if (values.length == 1) {
                return andRemarksEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.Remarks + " in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(String[] values) {
            if (values.length == 1) {
                return andRemarksNotEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.Remarks + " not in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion(ISysEventLogTypeDAO.Remarks + " not between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andEventContentTemplateIsNull() {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " is null");

            return this;
        }

        public Criteria andEventContentTemplateIsNotNull() {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate +
                " is not null");

            return this;
        }

        public Criteria andEventContentTemplateIsNotEmpty() {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate +
                " is not null AND " + ISysEventLogTypeDAO.EventContentTemplate +
                " <> ''");

            return this;
        }

        public Criteria andEventContentTemplateIsEmpty() {
            addCriterion("(" + ISysEventLogTypeDAO.EventContentTemplate +
                " is null OR " + ISysEventLogTypeDAO.EventContentTemplate +
                " = '')");

            return this;
        }

        public Criteria andEventContentTemplateEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " = ",
                value, "eventContentTemplate");

            return this;
        }

        public Criteria andEventContentTemplateEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventContentTemplate);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventContentTemplateEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventContentTemplateNotEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " <>",
                value, "eventContentTemplate");

            return this;
        }

        public Criteria andEventContentTemplateNotEqualToOrIsNull(String value) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate +
                " is null OR " + ISysEventLogTypeDAO.EventContentTemplate +
                " <>", value, "eventContentTemplate");

            return this;
        }

        public Criteria andEventContentTemplateNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventContentTemplate);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventContentTemplateNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventContentTemplateGreaterThan(String value) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " >",
                value, "eventContentTemplate");

            return this;
        }

        public Criteria andEventContentTemplateGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventContentTemplate);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventContentTemplateGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventContentTemplateGreaterThanOrEqualTo(
            String value) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " >=",
                value, "eventContentTemplate");

            return this;
        }

        public Criteria andEventContentTemplateGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventContentTemplate);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventContentTemplateGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventContentTemplateLessThan(String value) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " <",
                value, "eventContentTemplate");

            return this;
        }

        public Criteria andEventContentTemplateLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventContentTemplate);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventContentTemplateLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventContentTemplateLessThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " <=",
                value, "eventContentTemplate");

            return this;
        }

        public Criteria andEventContentTemplateLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventContentTemplate);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventContentTemplateLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventContentTemplateLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " like",
                buffer.toString(), "eventContentTemplate");

            return this;
        }

        public Criteria andEventContentTemplateNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate +
                " not like", buffer.toString(), "eventContentTemplate");

            return this;
        }

        public Criteria andEventContentTemplateIn(List<String> values) {
            if (values.size() == 1) {
                return andEventContentTemplateEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " in",
                    values, "eventContentTemplate");

                return this;
            }
        }

        public Criteria andEventContentTemplateNotIn(List<String> values) {
            if (values.size() == 1) {
                return andEventContentTemplateNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.EventContentTemplate +
                    " not in", values, "eventContentTemplate");

                return this;
            }
        }

        public Criteria andEventContentTemplateIn(String[] values) {
            if (values.length == 1) {
                return andEventContentTemplateEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " in",
                    Arrays.asList(values), "eventContentTemplate");

                return this;
            }
        }

        public Criteria andEventContentTemplateNotIn(String[] values) {
            if (values.length == 1) {
                return andEventContentTemplateNotEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventContentTemplate +
                    " not in", Arrays.asList(values), "eventContentTemplate");

                return this;
            }
        }

        public Criteria andEventContentTemplateIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventContentTemplateNotIn(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventContentTemplateBetween(String value1,
            String value2) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate + " between",
                value1, value2, "eventContentTemplate");

            return this;
        }

        public Criteria andEventContentTemplateNotBetween(String value1,
            String value2) {
            addCriterion(ISysEventLogTypeDAO.EventContentTemplate +
                " not between", value1, value2, "eventContentTemplate");

            return this;
        }

        public Criteria andEventDomainIdIsNull() {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " is null");

            return this;
        }

        public Criteria andEventDomainIdIsNotNull() {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " is not null");

            return this;
        }

        public Criteria andEventDomainIdIsNotEmpty() {
            addCriterion(ISysEventLogTypeDAO.EventDomainId +
                " is not null AND " + ISysEventLogTypeDAO.EventDomainId +
                " <> ''");

            return this;
        }

        public Criteria andEventDomainIdIsEmpty() {
            addCriterion("(" + ISysEventLogTypeDAO.EventDomainId +
                " is null OR " + ISysEventLogTypeDAO.EventDomainId + " = '')");

            return this;
        }

        public Criteria andEventDomainIdEqualTo(long value) {
            return andEventDomainIdEqualTo(Long.valueOf(value));
        }

        public Criteria andEventDomainIdEqualTo(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " = ", value,
                "eventDomainId");

            return this;
        }

        public Criteria andEventDomainIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainIdNotEqualTo(long value) {
            return andEventDomainIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andEventDomainIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " <>", value,
                "eventDomainId");

            return this;
        }

        public Criteria andEventDomainIdNotEqualToOrIsNull(long value) {
            return andEventDomainIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andEventDomainIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " is null OR " +
                ISysEventLogTypeDAO.EventDomainId + " <>", value,
                "eventDomainId");

            return this;
        }

        public Criteria andEventDomainIdNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainIdGreaterThan(long value) {
            return andEventDomainIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andEventDomainIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " >", value,
                "eventDomainId");

            return this;
        }

        public Criteria andEventDomainIdGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainIdGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainIdGreaterThanOrEqualTo(long value) {
            return andEventDomainIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andEventDomainIdGreaterThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " >=", value,
                "eventDomainId");

            return this;
        }

        public Criteria andEventDomainIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainIdLessThan(long value) {
            return andEventDomainIdLessThan(Long.valueOf(value));
        }

        public Criteria andEventDomainIdLessThan(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " <", value,
                "eventDomainId");

            return this;
        }

        public Criteria andEventDomainIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainIdLessThanOrEqualTo(long value) {
            return andEventDomainIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andEventDomainIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " <=", value,
                "eventDomainId");

            return this;
        }

        public Criteria andEventDomainIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainIdIn(long[] values) {
            if (values.length == 1) {
                return andEventDomainIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventDomainId + " in", values,
                    "eventDomainId");

                return this;
            }
        }

        public Criteria andEventDomainIdNotIn(long[] values) {
            if (values.length == 1) {
                return andEventDomainIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventDomainId + " not in",
                    values, "eventDomainId");

                return this;
            }
        }

        public Criteria andEventDomainIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andEventDomainIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.EventDomainId + " in", values,
                    "eventDomainId");

                return this;
            }
        }

        public Criteria andEventDomainIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andEventDomainIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.EventDomainId + " not in",
                    values, "eventDomainId");

                return this;
            }
        }

        public Criteria andEventDomainIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andEventDomainIdEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventDomainId + " in",
                    Arrays.asList(values), "eventDomainId");

                return this;
            }
        }

        public Criteria andEventDomainIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andEventDomainIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventDomainId + " not in",
                    Arrays.asList(values), "eventDomainId");

                return this;
            }
        }

        public Criteria andEventDomainIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainIdBetween(long value1, long value2) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " between",
                value1, value2, "eventDomainId");

            return this;
        }

        public Criteria andEventDomainIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " between",
                value1, value2, "eventDomainId");

            return this;
        }

        public Criteria andEventDomainIdNotBetween(long value1, long value2) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " not between",
                value1, value2, "eventDomainId");

            return this;
        }

        public Criteria andEventDomainIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysEventLogTypeDAO.EventDomainId + " not between",
                value1, value2, "eventDomainId");

            return this;
        }

        public Criteria andEventDomainNameIsNull() {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " is null");

            return this;
        }

        public Criteria andEventDomainNameIsNotNull() {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " is not null");

            return this;
        }

        public Criteria andEventDomainNameIsNotEmpty() {
            addCriterion(ISysEventLogTypeDAO.EventDomainName +
                " is not null AND " + ISysEventLogTypeDAO.EventDomainName +
                " <> ''");

            return this;
        }

        public Criteria andEventDomainNameIsEmpty() {
            addCriterion("(" + ISysEventLogTypeDAO.EventDomainName +
                " is null OR " + ISysEventLogTypeDAO.EventDomainName +
                " = '')");

            return this;
        }

        public Criteria andEventDomainNameEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " = ", value,
                "eventDomainName");

            return this;
        }

        public Criteria andEventDomainNameEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainNameNotEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " <>", value,
                "eventDomainName");

            return this;
        }

        public Criteria andEventDomainNameNotEqualToOrIsNull(String value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " is null OR " +
                ISysEventLogTypeDAO.EventDomainName + " <>", value,
                "eventDomainName");

            return this;
        }

        public Criteria andEventDomainNameNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainNameNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainNameGreaterThan(String value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " >", value,
                "eventDomainName");

            return this;
        }

        public Criteria andEventDomainNameGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainNameGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainNameGreaterThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " >=", value,
                "eventDomainName");

            return this;
        }

        public Criteria andEventDomainNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainNameLessThan(String value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " <", value,
                "eventDomainName");

            return this;
        }

        public Criteria andEventDomainNameLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainNameLessThanOrEqualTo(String value) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " <=", value,
                "eventDomainName");

            return this;
        }

        public Criteria andEventDomainNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysEventLogTypeDAO.EventDomainName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andEventDomainNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " like",
                buffer.toString(), "eventDomainName");

            return this;
        }

        public Criteria andEventDomainNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " not like",
                buffer.toString(), "eventDomainName");

            return this;
        }

        public Criteria andEventDomainNameIn(List<String> values) {
            if (values.size() == 1) {
                return andEventDomainNameEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.EventDomainName + " in",
                    values, "eventDomainName");

                return this;
            }
        }

        public Criteria andEventDomainNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andEventDomainNameNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysEventLogTypeDAO.EventDomainName + " not in",
                    values, "eventDomainName");

                return this;
            }
        }

        public Criteria andEventDomainNameIn(String[] values) {
            if (values.length == 1) {
                return andEventDomainNameEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventDomainName + " in",
                    Arrays.asList(values), "eventDomainName");

                return this;
            }
        }

        public Criteria andEventDomainNameNotIn(String[] values) {
            if (values.length == 1) {
                return andEventDomainNameNotEqualTo(values[0]);
            } else {
                addCriterion(ISysEventLogTypeDAO.EventDomainName + " not in",
                    Arrays.asList(values), "eventDomainName");

                return this;
            }
        }

        public Criteria andEventDomainNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andEventDomainNameBetween(String value1, String value2) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " between",
                value1, value2, "eventDomainName");

            return this;
        }

        public Criteria andEventDomainNameNotBetween(String value1,
            String value2) {
            addCriterion(ISysEventLogTypeDAO.EventDomainName + " not between",
                value1, value2, "eventDomainName");

            return this;
        }
    }
}
